<?php 
$hoy = strftime('%Y-%m-%H');
include('../Connections/KRAPPERCON.php');
include('../Connections/Accesos.php');
?>
<div>
<input type="button" onClick="searchFact()" value="Buscar"/>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>Clase Documento :</td>
    <td>
      <select name="cb_lf_cldoc" id="cb_lf_cldoc">
      <option value="">Todos</option>
      <?php 
	  $cladoc = 'FV';
	  include ('../Query_Min/getClaDocs.php');
	  ?>
      </select>    </td>
    <td>Cond.Venta :</td>
    <td>
      <select name="cb_lf_cvta" id="cb_lf_cvta">
      <option value="">Todos</option>
      </select>    </td>
  </tr>
  <tr>
    <td><input type="checkbox" name="chk_anul" id="chk_anul" />&nbsp;Mostrar Anulaciones</td>
    <td colspan="3">&nbsp;</td>
  </tr>
  <tr>
    <td>Fecha Factura :</td>
    <td colspan="3"><input name="t_lf_cini"  value="<?php echo $hoy;?>" class="tcal" type="text" id="t_lf_cini" size="12" maxlength="10">
a
  <input name="t_lf_cfin" type="text"  class="tcal" id="t_lf_cfin" size="12" maxlength="10"></td>
  </tr>
  <tr>
    <td>Fecha Proceso :</td>
    <td colspan="3"><input name="t_lf_pini" type="text" id="t_lf_pini"  class="tcal" size="12" maxlength="10" />
      a
      <input name="t_lf_pfin" type="text" id="t_lf_pfin"  class="tcal" size="12" maxlength="10" />    </td>
  </tr>
  <tr>
    <td>Local de Facturaci&oacute;n:</td>
    <td colspan="3">
    <select name="cb_local" id="cb_local">
    <option value=""></option>
    <?php
//	$cladoc = 'FV';
	  include ('../Query_Min/getCentros.php');
	?>
    </select>    </td>
  </tr>
  <tr>
    <td>Cliente :</td>
    <td colspan="3">
      <input name="t_lf_cli" type="text" id="t_lf_cli" size="12" maxlength="10">    </td>
  </tr>
  <tr>
    <td>Asignacion :</td>
    <td colspan="3">
      <input type="text" name="t_lf_ref" id="t_lf_ref">    </td>
  </tr>
  <tr>
    <td colspan="4"><div id="d_resfac"></div></td>
  </tr>
</table>

<script type="text/javascript">
function searchFact(){
$('#d_resfac').loadx('Consultas/Opers/queryFacts.php',
{oper : 'view', 
cb_lf_cldoc : GEBI('cb_lf_cldoc').value,
cb_lf_cvta : GEBI('cb_lf_cvta').value,
t_lf_pini : GEBI('t_lf_pini').value,
t_lf_pfin : GEBI('t_lf_pfin').value,
t_lf_cini : GEBI('t_lf_cini').value,
t_lf_cfin : GEBI('t_lf_cfin').value,
t_lf_cli : GEBI('t_lf_cli').value,
t_lf_ref : GEBI('t_lf_ref').value,
cb_local : GEBI('cb_local').value,
chk_anul : (GEBI('chk_anul').checked?1:0)
 }
);
}
</script>